package yyy.ab.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import yyy.ab.common.core.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 系统应用模块
 */
@Getter
@Setter
@TableName(value = "sys_app_module")
public class SysAppModule extends BaseEntity<Long> {

    @TableId(type = IdType.AUTO)
    @NotNull(groups = BaseEntity.Update.class)
    @ApiModelProperty(value = "id", hidden = true)
    private Long id;

    @NotBlank
    private String name;

    private String icon;

    private Long sort = 999L;
}
